/**
 * 
 */
package mails.vo;


/**
 * @author rob
 * 
 */
public class Mail {

	private int id;
	private String subject;
	private String date;
	private String time;
	private String body;
	private String name;
	private String address;
	private String to;
	private int wordcount;

	public Mail() {
	}

	public Mail(int id, String subject,String body,
			String name, String address, String to) {
		this.id = id;
		this.subject = subject;
		this.body = body;
		this.name = name;
		this.address = address;
		this.to = to;
	}
	
	public Mail(int id, String subject,String body,
			String name, String address, String to, int wordcount) {
		this.id = id;
		this.subject = subject;
		this.body = body;
		this.name = name;
		this.address = address;
		this.to = to;
		this.wordcount = wordcount;
	}
	
	public Mail(int id, String subject, String date, String time, String body,
			String name, String address, String to, int wordcount) {
		this.id = id;
		this.subject = subject;
		this.date = date;
		this.time = time;
		this.body = body;
		this.name = name;
		this.address = address;
		this.to = to;
		this.wordcount = wordcount;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public int getWordcount() {
		return wordcount;
	}

	public void setWordcount(int wordcount) {
		this.wordcount = wordcount;
	}

	@Override
	public String toString() {
		final String sep = " | ";
		StringBuilder builder = new StringBuilder();
		
		builder
		.append(id).append(sep)
		.append(date).append(sep)
		.append(time).append(sep)
//		.append(body).append(sep)
		.append(name).append(sep)
		.append(address).append(sep)
		.append(to).append(sep)
		.append(wordcount);
		
		return builder.toString();
	}
	
	
}
